// import { get } from "core-js/core/dict";
import { post, put, get } from "../utils/request";

/**
 * 注册接口
 * @param {*} data
 * @returns
 */
export const regAPI = (data) => post("/api/v1/auth/reg", data);

/**
 * 登录接口
 * @param {*} data
 * @returns
 */
export const loginAPI = (data) => post("/api/v1/auth/login", data);
/**
 * 获取用户信息接口
 */

export const loadUserInfoAPI = () => get("/api/v1/user/info");
/**
 * 签到接口
 */
export const signInAPI = () => post("/api/v1/user/check_in");
/**
 * 修改密码接口
 */
export const changePswAPI = (data) => put("/api/v1/user/update_pwd", data);

/**
 * 修改个人信息
 */

export const modifyInfoAPI = (data) => put("/api/v1/user/modify", data);
